import java.sql.SQLOutput;

public class Main {
    public static void main(String[] args) {
        int[] array = {5,22,77,1,88,33,66,0};
        PriorityQueue queue = new PriorityQueue();
        queue.createHeap(array);//把数组存入堆
        queue.push(79);//压入
        queue.pollHeap();//删除顶
        System.out.println(queue.peekHeap());//显示顶

    }
}
